<template>
  <div class="template">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{ breadList[0] }}</el-breadcrumb-item>
      <el-breadcrumb-item>{{ breadList[1] }}</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card>
      <slot></slot>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'base-template',
  props: {
    breadList: {
      type: Array,
      required: true,
    },
  },
}
</script>

<style lang="less" scoped>
div.template {
  .el-card {
    box-shadow: 0 0 5px #eee;
    margin-top: 20px;
  }
}
</style>
